Avorion Script API Documentation

Faction [Client]

This object is only available on the client.

function Faction(var index)

Parameters

index The index of the faction

Returns

A new instance of Faction

property bool alwaysAtWar[read-only]
property bool homeSectorUnknown[read-only]
property int index[read-only]
property bool isAIFaction[read-only]
property bool isAlliance[read-only]
property bool isPlayer[read-only]
property string name[read-only]
property string translatedName[read-only]
property Format unformattedName[read-only]

function int, int getHomeSectorCoordinates()

function var getRelations(int other)

function var getRelationStatus(int other)

function float getTrait(string trait)

Retrieves a trait value associated with a key

Parameters

trait The name of the trait

Returns

The trait value associated with the key

function table<string, float> getTraits()

Retrieves all key-value trait pairs of the faction

Returns

A table containing all custom key-value pairs

Overview
Home Functions Search
Search:

This is the official documentation for the scripting API of Avorion. This documentation is automatically generated and not necessarily complete. Depending on the context in which functions exist, some documentation such as descriptions, return values or variable names or types may be missing.

Work in Progress. Documentation of Avorion Version: 2.5.7 c8e4beec84f7